#!/bin/sh

_func1() {
myjavahome=${JAVA_HOME}
if [ "x$1" != "x" ]
then
  myjavahome=$1
  shift
fi

mywlhome=${WL_HOME}
if [ "x$1" != "x" ]
then
  mywlhome=$1
  shift
fi

myclasspath=".;$CLASSPATH;$WORKDIR/project/deploy/3rdparty/jython.jar;$WORKDIR/project/deploy/jython/oxy-jython.jar;$WORKDIR/project/deploy/jdk_extensions/oxy-jdk-extensions.jar;$WORKDIR/project/deploy/common/oxy-common.jar;$WORKDIR/project/deploy/commons-collections.jar;$WORKDIR/project/deploy/facade/oxygen-facade.jar;$WORKDIR/project/deploy/wlfacade/oxygen-wlfacade.jar;${mywlhome}/server/lib/weblogic.jar"

# echo $CLASSPATH

#java -Dpython.console=oxygen.jython.OxyJythonInterpreter org.python.util.jython

$myjavahome/bin/java -cp $myclasspath wljython

}

if [ "x$1" = "x90" ]
then
  shift
  _func1 "c:/bea/90beta/jdk150b" "c:/bea/90beta/weblogic90b" "$@"
else
  _func1 "$@"
fi
